home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Sound / MPEGA_3.0 / MPEGA.doc < prev    next >
Encoding:
Text File  |  1997-07-15  |  10.5 KB  |  318 lines

  1. -------------------------------------------------------------------------------
  2.  
  3.                  MPEGA 3.0  (15-Jul-1997) (68020+) (GIFTWARE)
  4.  
  5. -------------------------------------------------------------------------------
  6.  
  7.  
  8. Distribution Conditions
  9. -----------------------
  10.  
  11.   This program is copyright (c) 1995-1997 by Stephane TAVENARD.
  12. It may be distributed freely under the condition that no profit is
  13. gained from its distribution, nor from any other program distributed
  14. in the same package.
  15.  
  16.   Permission is granted to distribute this package by Bulletin Board
  17. systems or network sites, under the condition that no fee is charged
  18. on downloading it.
  19.  
  20.   All files that are part of this package have to be distributed
  21. together and none of them may be changed in any way other than
  22. archiving or crunching.  The only exception to this rule are the
  23. icons, including the tooltypes, which may be changed to accommodate
  24. them to the rest of the disk it is distributed on.
  25.  
  26.   This program is distibuted as freeware (and giftware).
  27.  
  28. Disclamer
  29. ---------
  30.  
  31.   This package is provided "as is" without warranty of any kind.
  32. The author assumes no responsibility or liability whatsoever
  33. for any damage or dataloss caused by using this package.
  34.  
  35.  
  36. Introduction
  37. ------------
  38.  
  39. What is MPEG audio ?
  40.  
  41. It's a very efficient audio compression standard. Actually, there is 3
  42. compression methods, named layer I, II & III. Layer III is more efficient
  43. than layer II, which is more efficient than layer I. But, more efficient
  44. means more complex.
  45. MPEG audio allows to compress a 16-bit PCM sound file from 1.2 to
  46. 32 times.
  47.  
  48. Why is it so hard to make a real time MPEG audio decoder ?
  49.  
  50. MPEG audio decoding requires a lot of arithmetic calculation, so a lot of CPU
  51. power is required. Normally, MPEG audio decoding is made with help of a DSP.
  52.  
  53.  
  54. History
  55. -------
  56.  
  57. V1.0    23-Jun-1995     First aminet release
  58. V1.1    09-Sep-1995     Added mixing audio output. For example, it can play at
  59.                         28000Hz a 11025Hz decoded stream (-d4 option).
  60. V1.2B   31-Jul-1996     68020..68040 and 68060 versions
  61.                         Buffer time can be set by user
  62.                         Can play half rate if private bit is set in mpeg stream
  63. V1.3    01-Nov-1996     Added MPEG2 low sampling frequencies
  64. V2.0    31-Mar-1997     Added Layer III !
  65. V2.1    02-Apr-1997     -x option now works (missing !)
  66. V2.2    05-Apr-1997     Corrected bug in MPEG I,II dequantization
  67.                         IMDCT now in pure asm
  68.                         Decoding Layer III is now 20% faster than V2.1
  69. V2.2B   06-Apr-1997     Added MPEG2.5 support
  70.                         Fixed bug in subband synthesis filter
  71. V2.3    11-Apr-1997     Optimized subband synthesis filter
  72.                         play audio as default (-s to silence)
  73.                         added priority option (-p)
  74. V2.4    19-Apr-1997     Optimized huffman decoding of Layer III
  75.                         Added AHI support (-I option)
  76.                         Use now async I/O for reading input file
  77.                         Improved multitasking capabilities
  78. V2.5    03-May-1997     Fixed bug for 48kHz & 24kHz streams
  79.                         Fixed bug in that swallows end of sound
  80.                         Added seek into stream (-S option)
  81.                         Use of AHI V4
  82.                         Fixed bug when stopping with Ctrl-C
  83.                         Re-enabled AIFF header (-A option)
  84.                         Added max decoding frequency (-F option)
  85. V2.6    16-May-1997     Added Time counter (-T option)
  86.                         Fixed small bug into IMDCT of layer III
  87.                         Fixed "Audio skipping" bug at start of play
  88. V2.7    18-May-1997     Optimized Subband synthesis (global gain = 20% on 060 !)
  89.                         Added synchronization tolerance (allows to read some incorrect bitstreams)
  90.                         No more crash if input stream is not MPEG Audio
  91. V2.8    24-May-1997     All output text info is now output to stdio instead of stderr
  92.                         Audio manager use now soft interrupts
  93. V2.9    29-May-1997     Added -w option to wait for audio buffer to be full before starting audio
  94.                         Added -b option to set the input file buffer size (default is 16KB)
  95.                         Gain of 6% for layer III decoding (on '060)
  96. V3.0    15-Jul-1997     FPU Version use now Optimized FPU routines (no more INTEGER calc.)
  97.                         -> FPU is slower than non FPU version, but provides more quality
  98.  
  99.                         Suppressed MPEG Audio header check (some streams have pb with it)
  100.                         Corrected bad lock when opening stream (MUFS files didn't work)
  101.                         New Huffman filling buffer (Decoding layer III is 5% faster on a 060)
  102.                         -a option to display audio buffer fill level (in secs)
  103.                         Audio buffer size can be more than 32 secs now
  104.                         Added WAVE output option (-W)
  105.                         Added Decoding parameters output option (-D)
  106.                         Faster dequantization & stereo process in layer III
  107.                         Play list as input file with -l option
  108.                         Output file can be specified with -o <file> option
  109.                         Added a config file (default is MPEGA:MPEGA.CFG, then MPEGA.CFG):
  110.                            - separate mpeg decoder options for Layer I&II and III, mono and stereo files
  111.                            - default options
  112.                         Added -C option to display current configuration
  113.                         Now time used is only displayed if -u option is set
  114.  
  115. Description
  116. -----------
  117.  
  118. You need at least a 68020 CPU to use it !
  119.  
  120. This is an highly optimized MPEG audio decoder. This one can decode MPEG audio
  121. standard streams, layer I, II & III. The output can be either a raw PCM file
  122. or AMIGA-builtin audio device (14-bit/cybersound/AHI).
  123.  
  124. How to use it
  125. -------------
  126.  
  127. Syntax: MPEGA [<options>] <MPEG Audio file> [<out pcm file>]
  128.  
  129. options are:
  130.  
  131. -d <freq_div>   frequency division: 1, 2 or 4
  132. -q <quality>    output quality: 0 (worst), 1 or 2 (best)
  133. -h              display header only
  134. -n              no frame counter
  135. -m              mono output (left channel)
  136. -p <pri>        process priority (-30..30)
  137. -I[<id>]        AHI output, <id> = Audio mode ID in hex (ex: -I20004)
  138. -s              silence (no audio output)
  139. -f 0|1          audio filter off/on (default = auto)
  140. -x <freq>       audio mixing frequency (default = none)
  141. -t <ms>         audio buffer time in ms (default = 1 sec)
  142. -v <vol>        audio volume (0..64 or 65..256 for boost)
  143. -w              wait for audio buffer to be full before starting audio
  144. -S <ms>         seek to time postion in stream (unit is ms)
  145. -A              write AIFF header to output file
  146. -W              write WAVE header to output file
  147. -F <freq_max>   max decoding frequency (auto freq_div)
  148. -T              display time counter instead of frame counter
  149. -b <k_size>     set the input file buffer size in KBytes (default = 16KB)
  150. -D              display decoding parameters
  151. -l              input file is a play list (text file)
  152. -o <out file>   output decoded file
  153. -c <cfg file>   configuration file (default = MPEGA.CFG)
  154. -C              display current configuration
  155. -u              display time used
  156.  
  157.  
  158. Play list
  159. ~~~~~~~~~
  160.  
  161. A play list is a text file, each line containing a filename (and its path).
  162.  
  163. Example:
  164.  
  165. ----- BEGIN OF playlist.txt -----
  166. mpega:films/PFICTION.MP3
  167. mpega:films/Blade_Runner/Blade_Runner_Blues.mp2
  168. mpega:Angra/Carolina_IV.mp2
  169. ------ END OF playlist.txt ------
  170.  
  171. -> 'mpega -l playlist.txt' will play all the files in this play list
  172.  
  173.  
  174. Config File
  175. ~~~~~~~~~~~
  176.  
  177. The default config file is 'MPEGA.CFG' loaded each time you start mpega.
  178. MPEGA first look for MPEGA.CFG in 'MPEGA:' directory. If not found,
  179. it try to open MPEGA.CFG in current directory.
  180.  
  181. You can specify an alternate config file with -c option.
  182.  
  183. A config file is a set of line options. The first 4 lines are used to
  184. configure the mpeg decoder according to the mpeg audio file type.
  185.  
  186. line option #  mpeg audio file type
  187.      1         Layer I or II, Mono
  188.      2         Layer III, Mono
  189.      3         Layer I or II, Stereo
  190.      4         Layer III, Stereo
  191.  
  192. On this first lines, only options -d, -q, -F and -m are allowed
  193.  
  194. The next lines are used as default options, as they were entered
  195. on the command line.
  196. Comment lines are blank lines or lines begining with #
  197.  
  198. Example of config file:
  199.  
  200. ----- BEGIN OF MPEGA.CFG -----
  201. # Config file for MPEGA
  202. #
  203. # WARNING You must not change the config lines order !
  204. #         option line is limited to 255 characters
  205. #
  206. # MPEG decoder options (allowed options: -d -q -F -m)
  207. #
  208. # Mono files:
  209. # Layers I & II
  210. -d1 -q2
  211. # Layers III
  212. -d2 -q1
  213. #
  214. # Stereo files:
  215. # Layers I & II
  216. -d1 -q1 -m
  217. # Layers III
  218. -q0 -F22050 -m
  219. #
  220. # Default options (all options allowed, may overwrite previous options)
  221. -u -T
  222. ------ END OF MPEGA.CFG ------
  223.  
  224.  
  225. Several version are available:
  226. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  227.  
  228. mpega.020       68020 or 68030 with or without FPU
  229. mpega.020FPU    68020 or 68030 + FPU
  230. mpega.040       68040 or 68060 with or without FPU
  231. mpega.040FPU    68040 or 68060 + FPU
  232.  
  233. ***** USE NON FPU VERSION FOR MAXIMUM SPEED OR AUDIO PLAYBACK *****
  234.  
  235. Examples:
  236.  
  237. playing sound without counter, priority of 10:
  238.  
  239.    mpega -p10 -n <mpeg file>
  240.  
  241. or with AHI:
  242.  
  243.    mode id requester:
  244.    mpega -p10 -n -I <mpeg file>
  245.  
  246.    mode id 20004:
  247.    mpega -p10 -n -I20004 <mpeg file>
  248.  
  249. playing on a pal screen (limit to 28Khz):
  250.  
  251.    mpega -x28000 <mpeg file>
  252.  
  253. creating an output pcm file without sound:
  254.  
  255.    mpega -s <mpeg file> <output pcm file>
  256.  
  257. creating an output AIFF file without sound:
  258.  
  259.    mpega -s -A <mpeg file> <output pcm file>
  260.  
  261.  
  262. Limit the decoding frequency to 22.05KHz
  263.  
  264.    mpega -F22050 <mpeg file>
  265.  
  266.  
  267. Speed
  268. -----
  269.  
  270. Today, MPEG layer III decoders are very rare on AMIGA
  271.  
  272. A little comparison with amp.0.7.2 on 68060/64 MHz:
  273.  
  274. Spot1-44S.96.mp3 (Stereo 44.1KHz 96kpbs layer III) of 10.9 sec
  275.  
  276. amp.040881   mpega:test/Spot1-44S.96.mp3 ram:out.pcm  -> 12.5 sec
  277. mpega.040    mpega:test/Spot1-44S.96.mp3 -s           ->  3.3 sec
  278.  
  279. Future
  280. ------
  281.  
  282. - Port of Layer III to 'SongPlayer' (aminet/mus/play)
  283.  
  284. - More speed !
  285.  
  286.  
  287. Copyrights
  288. ----------
  289.  
  290. AHI is Copyright ©1994-96 Martin Blom
  291.  
  292.  
  293.  
  294.  
  295. Thanks to my friend, AMIGA, the best computer ever made.
  296.  
  297.            / /
  298.           / /
  299.          / /
  300.    \ \  / /
  301.     \ \/ /
  302.      \/\/
  303.  
  304. Stéphane TAVENARD (ANGERS/France)
  305. Email: tavenard@xiii.univ-angers.fr (it's my brother Raphaël mail)
  306. IRC: Tatav
  307.  
  308. Send your gifts here :^)
  309.  
  310. Stéphane TAVENARD
  311. La Bezanière
  312. 49070 Saint Jean de Linières
  313. FRANCE
  314.  
  315. Nota from Raphaël: Because my E-mail account is very very short, please tell me before
  316.                    using an attachment :(
  317.  
  318.